Skip to content

riscv: Fix LR/SC alignment checks#31

Open
whensun wants to merge 1 commit into
antmicro:masterfrom
whensun:renode-lrsc-alignment
Open

riscv: Fix LR/SC alignment checks#31
whensun wants to merge 1 commit into
antmicro:masterfrom
whensun:renode-lrsc-alignment

Conversation

@whensun

@whensun whensun commented Jun 19, 2026

Copy link
Copy Markdown

This PR fixes RISC-V LR/SC alignment checks in tlib.

It adds alignment checks for LR.W, SC.W, LR.D, and SC.D so misaligned LR/SC accesses raise the expected address-misaligned exception instead of continuing without a trap.

Related to renode/renode#925

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant